package com.afdor.rws.dtm.serialize.fst;


import com.afdor.rws.dtm.serialize.ObjectInput;
import com.afdor.rws.dtm.serialize.ObjectOutput;
import com.afdor.rws.dtm.serialize.ObjectSerializer;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class FstSerialization implements ObjectSerializer {

    @Override
    public String getContentType() {
        return "x-application/rws-fst";
    }

    @Override
    public ObjectOutput serialize(OutputStream out) throws IOException {
        return new FstObjectOutput(out);
    }

    @Override
    public ObjectInput deserialize(InputStream is) throws IOException {
        return new FstObjectInput(is);
    }
}
